package com.base.redis;

import java.util.List;

/**
 * Jedis 接口
 * Created by becker on 2020/05/25.
 */
public interface JedisClient {

    String set(String key, String value);

    boolean setnx(String key, String value);

    boolean delnx(String key, String value);

    String get(String key);

    Boolean exists(String key);

    Long expire(String key, int seconds);

    Long ttl(String key);

    Long incr(String key);

    Long hset(String key, String field, String value);

    String hget(String key, String field);

    Long hdel(String key, String... field);

    Boolean hexists(String key, String field);

    List<String> hvals(String key);

    Long del(String key);

    Object eval(String script);

    Object eval(String script, List<String> keys, List<String> args);


}
